package com.gitee.lp.oracle;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.session.ResultHandler;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface OracleMapper {

    /**
     * 获取表结构
     *
     * @param talbe
     * @return
     */
    List<TableMd> talbes(@Param("table") String talbe);

    Long count(@Param("table") String table);

    List<HashMap<String, Object>> query(@Param("table") String table, @Param("keys") List<String> keys);

    void queryFetch(@Param("table") String table, ResultHandler<HashMap<String, Object>> handler);


}
